#!/usr/bin/env python

'''
madslibs contains the core functions of mads project including:
html parser to retrieve cards information
functions add generate metadata and attribute to cards
the core algorithm to build a customizable deck   
'''


__author__ = "Francesco di Dio, Simone Pasculli"
__copyright__ = "Copyright 2014, The M.A.D.S. Project"
__credits__ = ["none",]
__license__ = "GPL"
__version__ = "1.0.1"
__maintainer__ = "Francesco di Dio, Simone Pasculli"
__email__ = "tabuto83@gmail.com"
__status__ = "Development"

import madsloader
from src.libs import CardLoader
from FileAppender import FileAppender

if __name__ == "__main__":
    log = FileAppender("loader.log")
    threads_number = 10
    queue_size = 50
    simulate=False
    update=False
    loader = CardLoader(log,threads_number,queue_size,simulate,update)
    loader.load()
    #test commit da pycharm
    #madsloader.load_cards(start_from_last=False)
    #madsloader.load_keywords()

